﻿<%@ page title="经销商入口 > 我激活的卡" language="C#" masterpagefile="baseMasterPage.master" autoeventwireup="true" inherits="jxscardlist, App_Web_cphtqxoh" %>
<%@ Register Src="WebUserControl/PageNavigation.ascx" TagName="PageNavigation"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <style type="text/css">
    .WebNote_DataList{width:976px}
    .WebNote_DataList td{font-size:9pt}
    

        .pic{width:50px}
        td.sortnum{width:80px}
        input.sortnum{width:30px;font-size:8pt;font-family:Arial;text-align:right}
        #productTypeID{width:180px}
        .tf{width:50px}
        
        #state{width:120px}
        #cardtypeid{width:180px}
        
        .cardnum{font-family:Verdana}
        
        .state{color:#ffffff;display:inline-block;padding:2px}
        .s_1{background-color:#ff0000}
        .s0{background-color:#999999}
        .s1{background-color:#CCFF33;color:#009900}
        .s2{background-color:#99CC00}
        .s3{background-color:#009900}
        .s4{background-color:#0066FF}
        
        #divmoresearch{display:none}
    </style>
    
    <script type="text/javascript">
        window.onload = function() {

            $form.addOption("cardtypeid", "", "所有");
            $form.addOptionsByXML("admin/xmlcardtype.aspx", "cardtypeid", "cardtypeid", "cardtypename");


            var i;
            $form.addOption("state", "", "所有");
            for (i = 1; i <= 4; i++) {
                $form.addOption("state", i, $card.state2text(i));
            }

            $("span.state").each(function() {
                $(this).text($card.state2text($(this).text()));

            });

            $form.setdataByUrl("searchform");
        }



        //============================

        $(document).ready(function() {
            if (getCookie("cardlist_moresearch") == "true") {
                $("#divmoresearch").show();
                $("#btnmoresearch").text("切换到简单搜索模式");
            }
            else {
                $("#divmoresearch").hide();
                $("#btnmoresearch").text("切换到高级搜索模式");

            }

            $("span.jxsqqonline").each(function() {
                if ($(this).text()) {
                    $(this).html(getQQonline($(this).text().toString().trim()));
                }

            });

            $("#submittime0,#submittime1,#activationtime0,#activationtime1,#expresstime0,#expresstime1").datepicker({ monthNamesShort: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'], changeYear: true, changeMonth: true, dateFormat: 'yy-m-d' });


            $("span.opa").each(function() {
                if ($(this).attr("state")=="2") {
                    $(this).html("发货");
                }
                if ($(this).attr("state") == "3") {
                    $(this).html("修改发货信息");
                }
            });

            $("span.cardid").each(function() {
                if ($(this).attr("state")=="0") {
                    $(this).html("<input type=\"checkbox\" name=\"cardid\" value=\""+$(this).attr("cardid")+"\" cardnum=\"cardnum\"/>");
                }
            });         
            
        });
        function __moresearch() {

            if (getCookie("cardlist_moresearch") == "true") {
                $("#divmoresearch").hide();
                setCookie("cardlist_moresearch", "false");
                $("#btnmoresearch").text("切换到高级搜索模式");
            }
            else {
                $("#divmoresearch").show();
                setCookie("cardlist_moresearch", "true");
                $("#btnmoresearch").text("切换到简单搜索模式");
            }
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <form method="get" id="searchform">
        <fieldset style="width:960px;margin:auto;text-align:left"><legend style="font-weight:bold;color:#ffffff">搜索</legend>
            <table>
                <tr>
                    <td>卡状态<select id="state" name="state"></select>
                    </td>
                    <td>卡类型<select id="cardtypeid" name="cardtypeid"></select>
                    </td>
                    <td>卡号<input type="text" name="cardnum" id="cardnum"/>
                    </td>
                    <td>
                        <input type="submit" value="搜索" name="btnsubmit" />
                    </td>
                    <td>
                        <a id="btnmoresearch" href="javascript:__moresearch();" class="link">切换到高级搜索模式</a>
                    </td>
                </tr>
            </table>
            <div id="divmoresearch">
                <table>
                    <tr>
                        <td>提货人姓名<input type="text" name="truename" id="truename"/></td>
                        <td>电话<input type="text" name="phone" id="phone"/></td>
                        <td>地址<input type="text" name="address" id="address"/></td>
                    </tr>
                </table>
                <table>
                    <tr>
                        <td>提货时间范围:从<input type="text" name="submittime0" id="submittime0" class="inputdate"/>至<input type="text" name="submittime1" id="submittime1" class="inputdate"/></td>
                        <td>激活时间范围:从<input type="text" name="activationtime0" id="activationtime0" class="inputdate"/>至<input type="text" name="activationtime1" id="activationtime1" class="inputdate"/></td>
                        <td>发货时间范围:从<input type="text" name="expresstime0" id="expresstime0" class="inputdate"/>至<input type="text" name="expresstime1" id="expresstime1" class="inputdate"/></td>
                    </tr>
                </table>
            </div>
        </fieldset>
    </form>
    <div id="pagelist1" runat="server"></div>
    <uc1:PageNavigation id="PageNavigation1" runat="server">
    </uc1:PageNavigation>
</asp:Content>

